package com.trg.designmodel.commond;

/**
 * @author trg
 * @title: LightCommond
 * @projectName designmodel
 * @description: TODO
 * @date 2022/3/2123:13
 */
public class LightOnCommond  implements Commond {

    LightReceiver lightReceiver;

    public LightOnCommond(LightReceiver lightReceiver) {
        this.lightReceiver = lightReceiver;
    }

    @Override
    public void execute() {
        lightReceiver.on();
    }

    @Override
    public void undo() {
        lightReceiver.off();

    }
}
